package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblDisecorolIncstionDao;
import com.sinosoft.tcmneim.dataObject.TblDisecorolIncstion;
import com.sinosoft.tcmneim.service.TblDisecorolIncstionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblDisecorolIncstionServiceImpl implements TblDisecorolIncstionService {
    @Resource
    private TblDisecorolIncstionDao tblDisecorolIncstionDao;


    @Override
    public List<TblDisecorolIncstion> list() {
        return tblDisecorolIncstionDao.list();
    }

    @Override
    public List<TblDisecorolIncstion> selectByItemCode(String itemCode) {
        return tblDisecorolIncstionDao.selectByItemCode(itemCode);
    }

    @Override
    public int insertSelective(TblDisecorolIncstion tblDisecorolIncstion) {
        return tblDisecorolIncstionDao.insert(tblDisecorolIncstion);
    }

    @Override
    public int updated(TblDisecorolIncstion tblDisecorolIncstion) {
        return tblDisecorolIncstionDao.updated(tblDisecorolIncstion);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblDisecorolIncstionDao.deleteByItemCode(itemCode);
    }
}
